package com.vote.mapper;

import java.sql.Date;
import java.util.List;

import com.vote.entity.Channel;
import com.vote.entity.Ip;
import com.vote.entity.Vote;
import com.vote.entity.VoteOption;

public interface ChannelMapper {


	List<Channel> getAllChannel();

	List<Vote> getVoteList(int channelId);

	List<VoteOption> getvoteOptionList(int voteId);

	int getMaxSqeNumber(int voteId);

	VoteOption getAddVoteOption(String addvalue, int voteId);

	int addOption(VoteOption option);
	
	VoteOption getvoteOption(int oid);
	
	Ip getIp(String ip, Date date, int channelId);

	int updateVoteOption(VoteOption voteOption);

	int addIp(Ip ip);








}
